/********************************************************************************
 ***                                                                          *** 
 ********************************************************************************
 *                                                                              * 
 *           Prject Name : MEMORIA                                              * 
 *                                                                              * 
 *             File Name : card.h                                               * 
 *                                                                              * 
 *            Programmer : LBW                                                  * 
 *                                                                              * 
 *            Start Date : 2020/12/26                                           * 
 *                                                                              * 
 *           Last Update : 2020/12/26  [LBW]                                    * 
 *                                                                              * 
 *------------------------------------------------------------------------------*
 * Functions:                                                                   * 
 *==============================================================================*/

#ifndef CARD_H
#define CARD_H

#include <QWidget>

class QLabel;
class Card : public QWidget
{
	Q_OBJECT
public:
	Card(int cardId,QString strHeading,QString strSentence,QString strAnser,QString strWordPos,QString strInterference,QWidget *parent = 0);
protected:
	void paintEvent(QPaintEvent*);
private:
	void getRandomOrder();

	QVector<int> wordPos,wordLength;

	QLabel *headingLabel;
	int id;
	int numOfWords;
	QVector<int> order;
};

#endif
